﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "Message", Namespace = "http://www.haigu.com/")]
    public interface IMessage
    {
        [OperationContract]
        List<Message> GetAll();
        [OperationContract]
        List<Message> GetMsgByMemberID(int id,List<int> CreatorIDs);
        [OperationContract]
        List<vwMessage> GetMsgByID(int msgID);
        [OperationContract]
        List<Message> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        Message GetByID(int id);
        [OperationContract]
        bool Add(Message model, List<MemberInfo> members = null);
        [OperationContract]
        bool Update(Message model, List<MemberInfo> members = null);
        [OperationContract]
        bool Delete(int  id);
        [OperationContract]
        bool Add(Message model, string memberIDs);
        [OperationContract]
        bool Update(Message model, string memberIDs);
        [OperationContract]
        bool DeleteMessageItem(int msgID, int memberID);
    }
}
